package com.coder.baseapp.mvp.contract;

import com.coder.baseapp.mvp.base.IPresenter;
import com.coder.baseapp.mvp.base.IView;

/**
 * Login接口管理
 *
 * @Author: Tua.CoderGui
 * *
 * @Date: 2017/3/9
 * *
 * Copyright (c) 2017 All Rights Reserved.
 */

public interface LoginContract {

    interface View extends IView {

        void showLoading(boolean enable);

        void showError(String msg);

        void showSuccess();
    }

    interface Presenter extends IPresenter<View> {
        void login(String username, String password);
    }
}
